package com.easybuy.service.UserAddressService;

import com.easybuy.pojo.UserAddress;


import java.util.List;

public interface UserAddressService {
    //查询所有地址信息
    List<UserAddress> UserAddressList();
    //查询用户地址信息
    List<UserAddress> getUserAddress(int userId);
    //修改用户信息
    Integer modifyUserAddress(UserAddress userAddress);
    //设置默认地址
    Integer isDefaultUserAddress(Integer id);
    //清除默认地址
    Integer cleanDefaultUserAddress(Integer userId);
    //增加地址
    Integer addUserAddress(UserAddress userAddress);
    //查询单个地址信息
    UserAddress getUserAddressById(int id);
    //删除地址
    int deleAddress(int id);
}
